﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
using System.Collections;

/// <summary>
/// 基本参数约定
/// </summary>

class GeneralPara
{
    // 映射
    public static int ACTION_SENSOR_YU_TO_KEY = 38;              //传感器上仰动作对于的键盘按键   默认方向键上
    public static int ACTION_SENSOR_YD_TO_KEY = 40;              //传感器下仰动作对于的键盘按键   默认方向键下
    public static int ACTION_SENSOR_XLEFT_TO_KEY = 37;           //传感器左倾动作对于的键盘按键   默认方向键左
    public static int ACTION_SENSOR_XRIGHT_TO_KEY = 39;          //传感器右倾动作对于的键盘按键   默认方向键右

    public static int ACTION1_TO_KEY = 27;          //传感器右倾动作对于的键盘按键   默认方向键右
    public static int ACTION2_TO_KEY = 32;          //传感器右倾动作对于的键盘按键   默认方向键右
    public static int ACTION3_TO_KEY = 75;          //传感器右倾动作对于的键盘按键   默认方向键右
    public static int ACTION4_TO_KEY = 74;          //传感器右倾动作对于的键盘按键   默认方向键右



    public List<int> downingKey = new List<int>();   //当前存在功能的按键hash

    public void GetAllKey()
    {
        downingKey.Add(ACTION_SENSOR_YU_TO_KEY);
        downingKey.Add(ACTION_SENSOR_YD_TO_KEY);
        downingKey.Add(ACTION_SENSOR_XLEFT_TO_KEY);
        downingKey.Add(ACTION_SENSOR_XRIGHT_TO_KEY);
    }


}
